package com.ruoyi.logistic.enums;

/**
 *
 *
 * @author ruoyi
 */
public enum NetworkUnderTakeEnum
{
    networkNameId("networkNameId", "网点名称"),
    settleDate("settleDate", "日期"),
    settleType("settleType", "账号类型"),
    contractAreaName("contractAreaNameId", "承包区名称"),
    totalTicket("totalTicket", "总票数"),
    totalWeight("totalWeight", "重量"),
    totalIncome("totalIncome", "收入"),
    avgTicketIncome("avgTicketIncome", "票均收入"),
    avgTicketWeight("avgTicketWeight", "票均重量"),
    areaOneTicket("areaOneTicket", "区域一票数"),
    areaOneTicketRatio("areaOneTicketRatio", "区域一票数占比 (%)"),
    areaOneWeight("areaOneWeight", "区域一重量"),
    areaOneWeightRatio("areaOneWeightRatio", "区域一重量占比(%)"),
    areaOneIncome("areaOneIncome", "区域一收入"),
    areaOneAvgIncome("areaOneAvgIncome", "区域一票均收入"),
    areaOneAvgWeight("areaOneAvgWeight", "区域一票均重量"),
    areaOtherTicket("areaOtherTicket", "其他区域票数"),
    areaOtherTicketRatio("areaOtherTicketRatio", "其他区域票数占比(%)"),
    areaOtherWeight("areaOtherWeight", "其他区域重量"),
    areaOtherWeightRatio("areaOtherWeightRatio", "其他区域重量占比(%)"),
    areaOtherIncome("areaOtherIncome", "其他区域收入"),
    areaOtherAvgIncome("areaOtherAvgIncome", "其他区域票均收入"),
    areaOtherAvgWeight("areaOtherAvgWeight", "其他区域票均重量");

    private final String code;
    private final String info;

    NetworkUnderTakeEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkUnderTakeEnum value : NetworkUnderTakeEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
